package com.geline.easyexcel.annotation;

import com.geline.easyexcel.config.EasyExcelRegistrar;
import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * Excel扫描注解：
 *  @ExcelImport @ExcelExportPage @ExcelExportList
 *
 * 使用方式：@EasyExcelScan(value = {"com.geline.demo"})
 * @author: mengxin
 * @date: 2024/2/28 15:17
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Documented
@Import({EasyExcelRegistrar.class})
@Repeatable(EasyExcelScans.class)
public @interface EasyExcelScan {
    @AliasFor("basePackages")
    String[] value() default {};

    @AliasFor("value")
    String[] basePackages() default {};
}
